<template>
  <div class="theme-rcmd sprite_02">
    <div class="left">
      <h2 class="title">{{ title }}</h2>

      <div class="keyword">
        <div 
          class="item"
          v-for="item in keywords"
          :key="item.title"
        >
          <a href="javascript:;">{{ item.title }}</a>
          <span class="divider">|</span>
        </div>
      </div>
    </div>

    <div class="right">
      <a href="javascript:;">更多</a>
      <i class="icon sprite_02"></i>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue'

interface IKeywords {
  title: string
}

export default defineComponent({
  props: {
    title: {
      type: String,
      required: true
    },
    keywords: {
      type: Array as PropType<IKeywords[]>,
      default: () => []
    }
  },

  setup() {
    
  },
})
</script>

<style lang="less" scoped>
@import "./index.less";
</style>